package com.gang.mars.aop.proxy.cglib.filter;

import java.lang.reflect.Method;

/**
 * 类说明：gang.chen springboot深度实践
 *
 * @author gang.chen
 * @since 2022/5/14
 */
public class GangDefaultCallbacFilter implements GangCallbackFilter{

    @Override
    public int accept(Method method) {
        if (method.getName().equals("test1")) {
            return 0;
        }else {
            return 1;
        }
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
